package org.web.ssm.model;

import java.util.Date;

/**
 * Created by LUOLIANG on 2016/6/13.
 * 用户订单细节实体类
 */
public class OrderDetail {
    private String orderid;    //订单id，自动生成
    private User user;         //关联用户类
    private String incometype;     //收入支出类型  ps：收入or支出
    private String ordertype;     //订单类型    ps：缴费，娱乐
    private String orderinstruction;   //订单说明
    private Double charges;
    private Date createtime;

    public OrderDetail(User user, String incometype, String ordertype, String orderinstruction, Double charges, Date createtime) {
        this.user = user;
        this.incometype = incometype;
        this.ordertype = ordertype;
        this.orderinstruction = orderinstruction;
        this.charges = charges;
        this.createtime = createtime;
    }

    public OrderDetail() {
    }

    @Override
    public String toString() {
        return "OrderDetail{" +
                "orderid='" + orderid + '\'' +
                ", user=" + user +
                ", incometype='" + incometype + '\'' +
                ", ordertype='" + ordertype + '\'' +
                ", orderinstruction='" + orderinstruction + '\'' +
                ", charges=" + charges +
                ", createtime=" + createtime +
                '}';
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getOrderid() {
        return orderid;
    }

    public void setOrderid(String orderid) {
        this.orderid = orderid;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getIncometype() {
        return incometype;
    }

    public void setIncometype(String incometype) {
        this.incometype = incometype;
    }

    public String getOrdertype() {
        return ordertype;
    }

    public void setOrdertype(String ordertype) {
        this.ordertype = ordertype;
    }

    public String getOrderinstruction() {
        return orderinstruction;
    }

    public void setOrderinstruction(String orderinstruction) {
        this.orderinstruction = orderinstruction;
    }

    public Double getCharges() {
        return charges;
    }

    public void setCharges(Double charges) {
        this.charges = charges;
    }
}
